package com.ay.service;

import com.ay.dao.StudentDao;
import com.ay.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService implements StudentDao {
    @Autowired
    StudentDao studentDao;


    @Override
    public List<Student> selectByNameAndAge(String name, Integer age) {
        return studentDao.selectByNameAndAge(name,age);
    }

    public List<Student> selectByNameAndAge(String name, Integer age,Integer dangqianye) {
        return studentDao.selectByNameAndAge(name,age);
    }
}
